DY-500 RTU Communication Driver

 

DY-500 RTU communication driver is the driver to communicate with data logger controller of Dongyoung in Korea.

1. Read settings

 

<Figure 1> is read setting example of  DY-500 RTU communication driver. 

<Figure 1>  Read setting example of  DY-500 RTU communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(fixed to 9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

Also you can input 'received data saving AI tag' by using option part.

 

DY-500 RTU communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Don't care.

2) Read Memory Type – Don't care.

3) Read Data Type Read data type. ( Refer to <Table 1> )

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Read data size. ( Fixed, Refer to <Table 1> )

 

Read schedule example) 

READ,     ,     ,     2,    0,   6,

READ,     ,     ,     6,    6,   2,

READ,     ,     ,    17,    8,   1,

READ,     ,     ,    18,    9,   1,

READ,     ,     ,    99,   10,  13,

FLOAT,     ,     ,     6,    0,   2,

FLOAT,     ,     ,     7,    2,   4,

FLOAT,     ,     ,    10,   6,   1,

 

<Table 1> is read size and contents for each read data type.

Read data type
Read size
Contents

Data Saving Address

2
6
Read of current RTU time

Start Add + 0 = year

Start Add + 1 = month

Start Add + 2 = day

Start Add + 3= hour

Start Add + 4 = minute

Start Add + 5 = second

6
2
Read of RTU status and current value

Start Add + 0 = current value

Start Add + 1 = digital status (8bit)

7
4
Read of AI channel setting value

Start Add + 0 = AD_LOW

Start Add + 1 = AD_HIGH

Start Add + 2 = VIEW_LOW

Start Add + 3 = VIEW_HIGH

10
1
Read of setting water level (above sea level)

Start Add + 0 = water level

17
1
Read of AI channel value

Start Add + 0 = channel value(0~99)

18
1
Read of logging period

Start Add + 0 = logging period(0~9999)

99
13
Read of RTU information

Start Add + +0, Start Add + 1 = year

Start Add + 2 = month

Start Add + 3 = day

Start Add + 4 = hour

Start Add + 5 = minute

Start Add + 6 = second

Start Add + 7 = loging period

Start Add + 8 = loging

ON/OFFbuf+9 = AUTO REBOOT

Start Add + 10 = year of Rom Version

Start Add + 11 = month od Rom Version

Start Add + 12 = day of Rom Version

<Table 1> Read size and contents for each read data type

 

2. Writing settings

You can write the setting value by using write settings.

 

Bit Write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Write data type.

0001 = Reset of RTU,

0002 =  RTU time Synchronization(PC current time),  

0008 = Receive start command of RTU saved data. Received data for this command, will save at 'received data saving AI tag'. ( inputed option part tag )

 Before using this command, you should set start and end time by using '0008 Word write' command.

0019 = Loging Start/Stop,

0062 = Send EOT data to RTU.

4)  Extra1                   Don't care.

5)  Extra2                   Don't care.

 

Write example 1) 

Port:0,  Station:0,  Address:0001,  Extra1: ,  EXTRA2 :

 The setting parameter shown above is Reset of RTU.

 

Word Write

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Write data type.

 0007 = Setting of AI channel constant value, (Extra2 = setting type)

0008 = Start/End time setting for receiving data, (Extra2 = time sort)

0010 = Setting water level, (above sea level)

0017 = Setting of AI channel,

0018 = Setting of loging period.

4)  Extra1                   Don't care.

5)  Extra2                   Setting type or time sort when 'ADDRESS' = 0007 or 0008.

 ADDRESS = 0007 : 0 = AD_LOW, 1 = AD_HIGH,  2 = VIEW_LOW,  3 = VIEW_HIGH,

 ADDRESS = 0008 : 0 = Data start year,  1 = Data start month,  2 = Data start day, 3 = Data start hour,  4 = Data start minute

         10 = Data end year,  11 = Data end month, 12 = Data end day,  13 = Data end hour,  14 = Data end minute,

 ADDRESS = Others : Don't care.

 

Write example 1) 

PORT : 0,  STATION : 0,  ADDRESS : 0010,  EXTRA1 :  , EXTRA2 :

The setting parameter shown above is a setting example of  water level.